<h2 class="title">Consultar Categorías</h2>

<?php
echo $this->element('filtros/filtros');
echo $this->element('filtros/activos');
?>

<table>
    <tr>
        <?php echo $this->element('head'); ?>
        <th>Acciones</th>
    </tr>

    <?php foreach ($rows as $row): ?>
        <tr>
            <td><?php echo $row['Categoria']['nombre']; ?></td>
            <td><?php echo $row['Categoria']['orden']; ?></td>
            <td><?php echo p_estado($row['Categoria']['estado']); ?></td>
            <td>
                <?php echo $this->Html->link(EDIT_IMG, array('action' => 'edit', $row['Categoria']['id'])); ?>
                <?php echo $this->Form->postLink(DELETE_IMG, array('action' => 'delete', $row['Categoria']['id']), array('confirm' => '¿Estás seguro?')); ?>
            </td>
        </tr>
    <?php endforeach; ?>
</table>

<?php
echo $this->element('paginador');
?>